package behaviorType.iterator;

public class Main {

    public static void main(String[] args) {
        IContainer tv = new TV(); // 电视总局

        Iterator iterator = tv.createrIterator();

        while (iterator.hasNext()) {
            System.out.println("TVChennel:" + iterator.next());
        }
    }
}
